﻿using TianlalaHSB.Models;

namespace TianlalaHSB.ViewModels;

public class AccountRefundViewModel(MerchantAccountRefund data) : BaseViewModel
{
    /// <summary>
    ///     流水号
    /// </summary>
    public string? serialNo => data.serialNo;

    /// <summary>
    ///     交易金额
    /// </summary>
    public string? amount => data.amount;

    /// <summary>
    ///     允许调账
    /// </summary>
    public string? adjustFlag => data.adjustFlag;

    /// <summary>
    ///     调入资金账号
    /// </summary>
    public string? subAcctNo => data.subAcctNo;

    /// <summary>
    ///     调入资金户名
    /// </summary>
    public string? subAcctName => data.subAcctName;

    /// <summary>
    ///     对方资金账号
    /// </summary>
    public string? oppAcctNo => data.oppAcctNo;

    /// <summary>
    ///     对方资金户名
    /// </summary>
    public string? oppAcctName => data.oppAcctName;

    /// <summary>
    ///     交易日期
    /// </summary>
    public string? transDate => data.transDate;

    /// <summary>
    ///     交易时间
    /// </summary>
    public string? transTime => data.transTime;

    /// <summary>
    ///     对方行名
    /// </summary>
    public string? oppBankNo => data.oppBankNo;

    /// <summary>
    ///     交易备注
    /// </summary>
    public string? postscript => data.postscript;

    /// <summary>
    ///     失败原因
    /// </summary>
    public string? errorInfo => data.errorInfo;
}